﻿var WebsocketServer = require('ws').Server
	, wss = new WebsocketServer({port:8080});

wss.on('connection', function(ws) {
	ws.on('message', function(message) {
		console.log('received : %s', message);
		ws.send('something'+message);
	});
	
});